package com.example.games.core;

import android.graphics.Canvas;
import android.graphics.Paint;

/**
 * 精灵类
 * 
 * @author caohao
 * 
 */
public interface CSprite {

	public int getType();

	public void drawSelf(Canvas canvas, Paint paint);

	public void logic();

	public int getX();

	public int getY();

	public int getSpriteWidth();

	public int getSpriteHeight();

	public int getCircleX();

	public int getCircleY();

	public double getCircleR();

	public boolean isCollidedEnemy(CSprite enemy);

	public boolean isTouched(float x, float y);

	public void lostHp(int damage);

	public int getHp();
	
	public boolean isDead();
	
}
